package com.ambimmort.shj.action.user;

/**
 * Created by Administrator on 2015/7/31.
 */

import com.ambimmort.shj.service.user.UserService;
import net.sf.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.servlet.http.HttpServletRequest;

@Controller("/action/user/query_user_operation_servlet1.do")
public class QueryUserOperationServlet {
    @Autowired
    private UserService userService;


    /**
     *
     * @param request
     * @param json
     * @param iDisplayStart
     * @param iDisplayLength
     * @throws Throwable
     */
    @RequestMapping("/action/user/query_user_operation_servlet1.do")
    @ResponseBody
    public void action_UserQueryUserOperationServlet(HttpServletRequest request, @RequestParam("json") String json,@RequestParam("iDisplayStart") String iDisplayStart,@RequestParam("iDisplayLength") String iDisplayLength) {
//        String json,String username,String starttime,String endtime,String iDisplayStart,String iDisplayLength
        JSONObject jo = JSONObject.fromObject(json);

        String username = jo.getString("username");
        String starttime = jo.getString("startTime");
        String endtime = jo.getString("endTime");

        userService.queryUserOperationServletDomain(username, starttime, endtime, iDisplayStart,iDisplayLength);
    }
}
